﻿@*@model LeEdu.MODEL.Columnss*@
@{
    Layout = null;
    LeEdu.MODEL.Columnss Model = ViewBag.sta;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>EditGroup</title>
</head>
<body>
    <form class="form-horizontal" method="post" action="/Group/EditCols" enctype="multipart/form-data">
        <input id="Hidden1" type="hidden" value="@Model.ColumnssID" name="ColumnssID" />
        <input id="Hidden2" type="hidden" value="@Model.CLStarttime" name="CLStarttime" />
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="exampleModalLabel">编辑用户信息</h4>
        </div>
        <div class="modal-body">
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">栏目名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="CLNAME" id="CLNAME" value="@((ViewBag.sta as LeEdu.MODEL.Columnss).CLNAME)" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">栏目编码</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="CLCODING" id="CLCODING" value="@Model.CLCODING" placeholder="">
                    <span style="color:#808080">生成列表，资讯时使用，例如news bbs等</span>
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">父栏目</label>
                <div class="col-sm-10">
                    <select class="form-control" name="CLMGR">
                        <option value="0">选择栏目</option>
                        @foreach (var item in ViewBag.collist )
                        {
                            <option @(Model.CLMGR == item.ColumnssID?"selected='selected'":"") value="@item.ColumnssID">@item.CLNAME</option>
                        }
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">显示顺序号</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="CLOrder" id="CLOrder" value="@Model.CLOrder" placeholder="0">
                    <span style="color:#808080">显示顺序号 数字越小 位置越前</span>
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">SEO标题</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="CLSEOtitle" value="@Model.CLSEOtitle" id="CLSEOtitle" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">SEO关键字</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="CLSEOKey" value="@Model.CLSEOKey" id="CLSEOKey" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">SEO描述</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="CLSEOdescribe" value="@Model.CLSEOdescribe" id="CLSEOdescribe" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">启用</label>
                <div class="col-sm-10">
                    @if (Convert.ToInt32(Model.CLState) == 1)
                    {
                        <label class="radio-inline">
                            <input type="radio" name="CLState" id="radio1" value="1" checked="checked"><span>是</span>
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="CLState" id="radio2" value="0"><span>否</span>
                        </label>
                    }
                    else
                    {
                        <label class="radio-inline">
                            <input type="radio" name="CLState" id="radio1" value="1"><span>是</span>
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="CLState" id="radio2" value="0" checked="checked"><span>否</span>
                        </label>
                    }
                  
                </div>
            </div>
        </div>

        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="submit" class="btn btn-primary">提交</button>
        </div>
    </form>
</body>
</html>
